#ifndef _BUFFER_H_
#define _BUFFER_H_
#include "stdint.h"

#define BUFFER_LENGTH 300

typedef struct
{
	uint32_t length;
	uint8_t rx[BUFFER_LENGTH];
}UART_BUF_R;

typedef struct Buffer{
  UART_BUF_R uart0RxBuf;
  struct Buffer *pNext;
}Buffer;

void bufferInit(void);
uint8_t addBuffer(UART_BUF_R *uartBuffer);
uint8_t getBuffer(UART_BUF_R *uartBuffer);
#endif

